package com.calvin.study.controller;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("user")
public class UserController {
	
    @Value("${sso.server.url}")
    String ssoServerUrl;
    
    @Autowired
    RedisTemplate<String, String> redisTemplate;
	
    @RequestMapping("/index")
    public String index(Model model,HttpSession session){
    	model.addAttribute("user", session.getAttribute("loginUser"));
        return "user_index";
    }
}
